package com.cheers.dao;

import java.util.List;
import java.util.Map;

import com.cheers.model.Integral;


public interface IntegralDao extends BaseDao {
	
	/**
	 * 积分排行榜
	 * @param firstIndex
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List<Object[]> rank(int firstIndex, int pageSize) throws Exception;

	/**
	 * 获取积分实体
	 * @param userId
	 * @param channel
	 * @return
	 * @throws Exception
	 */
	public Integral getIntegral(String userId, String channel) throws Exception;
	
	/**
	 * 获取个人总积分
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public Long getTotalPoint(String userId) throws Exception;
	
}
